﻿using GameView.Models;
using System.ComponentModel.DataAnnotations;

namespace GameView.Services.Dtos.RoleDto
{
    public class RoleUpdateDto : BaseDto, IValidatableObject
    {
        /// <summary>
		/// 角色名称
		/// </summary>
        [Required(ErrorMessage = "{0}不能为空")]
        public string Name { get; set; }

        /// <summary>
        /// 描述
        /// </summary>
        public string Description { get; set; }

        /// <summary>
        /// 菜单Id集合
        /// </summary>
        public List<int> MenuIds { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public string Remark { get; set; }

        public IEnumerable<ValidationResult> Validate(ValidationContext validationContext)
        {
            return [];
        }
    }
}